digest

Calculates the hash of the given disclosure using the specified hashing algorithm

Return

the DisclosureDigest of the given disclosure

Parameters

hashingAlgorithm

the hashing algorithm to use

d

the disclosure to hash


fun digest(hashingAlgorithm: HashAlgorithm, value: String): Result<DisclosureDigest>(source)

Calculates the hash of the given value using the specified hashing algorithm

Return

the DisclosureDigest of the given value

Parameters

hashingAlgorithm

the hashing algorithm to use

value

the value for which to calculate the hash